import request from '@/utils/request'

// 查询计划
export function listMaintenancePlan(query) {
  return request({
    url: '/business/maintenance/plan/list',
    method: 'get',
    params: query
  })
}

// 新增计划
export function addMaintenancePlan(data) {
  return request({
    url: '/business/maintenance/plan/addMaintenancePlan',
    method: 'put',
    data: data
  })
}

// 删除计划
export function delMaintenancePlan(id) {
  return request({
    url: '/business/maintenance/plan/' + id,
    method: 'delete'
  })
}